package com.an.spring.beanlife;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
   /* public static void main(String[] args){
        ApplicationContext context = new ClassPathXmlApplicationContext("beanconfig.xml");
        Boos boos = context.getBean(Boos.class);
        Car car1 = (Car) context.getBean("car1");
        Car car2 = (Car) context.getBean("car2");

        System.out.println("car1:" + car1);
        System.out.println("car2" + car2);
        System.out.println(boos);
    }*/
}
